package controller;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class home extends HttpServlet {
    protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        if (request.getParameter("loginSubmit") != null) {          //LogIn
            String UserName = request.getParameter("loginUserName");
            String PassWord = request.getParameter("loginPassWord");
            /* ///@todolist : login */
        }
    }

    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods">
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        /* handles the HTTP <code>GET</code> method */
            processRequest(request, response);
    }
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        /* handles the HTTP <code>POST</code> method */
            processRequest(request, response);
    }
    @Override
    public String getServletInfo() {
        return "short description";
    }
    // </editor-fold>
}
